<!--继承基文件-->
{% extends "base.html" %}
{% load static %}
<!--标题-->
{% block title %} 用户列表 {% endblock title %}
{% block user %}{% if request.session.user %}{{ request.session.user }}{% else %} administrator{% endif %}{% endblock %}

<!--内容-->
{% block content %}
    <div class="right-product my-index right-full">
        <div class="container-fluid">
            <div class="info-center">
                {% include 'content_head.html' %}

                <div class="content-list">
                    <div class="row newslist" style="margin-top:20px;">
                        <div class="col-md-12">
                            <div class="panel panel-info mystyle-panel">
                                <div class="panel-heading">
                                    业务线列表
                                    <div class="caret"></div>
                                    <a href="#" class="pull-right"><span class="glyphicon glyphicon-refresh"></span></a>
                                </div>
                                <div class="panel-body">
                                    <table class="table table-striped table-bordered table-hover">
                                        <tr class="mystyle info">
                                            <th>序号</th>
                                            <th>ID</th>
                                            <th>业务线名</th>
                                            <th>查看</th>
                                            <th>操作</th>
                                        </tr>
                                        {% for serviceLine in serviceLine_list %}
                                            <tr>
                                                <td>{{ forloop.counter }}</td>
                                                <td>{{ serviceLine.id }}</td>
                                                <td>{{ serviceLine.name }}</td>
                                                <td><a href="{% url 'app01:show_host' pk=serviceLine.id %}"
                                                       class="btn btn-info">
                                                    查看{{ serviceLine.name }}主机信息</a>
                                                    <a href="{% url 'app01:show_user' pk=serviceLine.id %}"
                                                       class="btn btn-info">
                                                        查看{{ serviceLine.name }}维护人员列表</a></td>
                                                <td><a href="{% url 'app01:edit_serviceLine' pk=serviceLine.id %}"
                                                       style="color:rgb(51,122,183);">
                                                    <span class="glyphicon glyphicon-edit"></span></a>
                                                    <span style="padding: 0 10px;"></span>
                                                    <a href="{% url 'app01:del_serviceLine' pk=serviceLine.id %}"
                                                       style="color: red;">
                                                        <span class="glyphicon glyphicon-trash"></span>
                                                    </a>
                                                </td>
                                            </tr>
                                        {% endfor %}
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock content %}
